﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chat_Model
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("lar_file_split_upload")]
    public class LarFileSplitUpload
    {
        /// <summary>
        /// 临时文件ID 
        ///</summary>
         [SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true  )]
         public string Id { get; set; }
        /// <summary>
        /// 1:合并文件  2:拆分文件 
        /// 默认值: 1
        ///</summary>
         [SugarColumn(ColumnName="file_type"    )]
         public string FileType { get; set; }
        /// <summary>
        /// 上传的用户ID 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="user_id"    )]
         public string UserId { get; set; }
        /// <summary>
        /// 临时文件hash名 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="hash_name"    )]
         public string HashName { get; set; }
        /// <summary>
        /// 原文件名 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="original_name"    )]
         public string OriginalName { get; set; }
        /// <summary>
        /// 当前索引块 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="split_index"    )]
         public string SplitIndex { get; set; }
        /// <summary>
        /// 总上传索引块 
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="split_num"    )]
         public string SplitNum { get; set; }
        /// <summary>
        /// 文件的临时保存路径 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="save_dir"    )]
         public string SaveDir { get; set; }
        /// <summary>
        /// 文件后缀名 
        /// 默认值: 
        ///</summary>
         [SugarColumn(ColumnName="file_ext"    )]
         public string FileExt { get; set; }
        /// <summary>
        /// 临时文件大小 
        ///</summary>
         [SugarColumn(ColumnName="file_size"    )]
         public string FileSize { get; set; }
        /// <summary>
        /// 文件是否已被删除(1:是 0:否)  
        /// 默认值: 0
        ///</summary>
         [SugarColumn(ColumnName="is_delete"    )]
         public string IsDelete { get; set; }
        /// <summary>
        /// 文件上传时间 
        ///</summary>
         [SugarColumn(ColumnName="upload_at"    )]
         public int? UploadAt { get; set; }
    }
}
